var pathServer = 'http://s01.launchai.cn'
var interfaceUrl = `http://${location.host + location.pathname}aa/../..`
var getInterfaceUrl = () => {
  var url = window.localStorage.getItem('url')
  if (!url) {
    url = interfaceUrl
  }
  return url
}
console.log('v1.0.3')
console.log('中止之后进度条还是继续变化')
export var server = {
  static: pathServer,
  interfaceUrl: interfaceUrl,
  // interfaceUrl: `http://${location.host + location.pathname}aa/../..`,
  // interfaceUrl: 'http://127.0.0.1:8078', // 接口地址
  // interfaceUrl: 'http://10.12.16.138:10010/hmi-test', // 蔡接口
  sidebarData: [{
    id: 'test',
    icon: '',
    value: '主栏目',
    isShow: '',
    list: [
      {id: 'home', active: false, icon: 'icon-config-command', value: '主页'}
    ]
  },
    {
      id: 'index3',
      value: '用户中心',
      isShow: '',
      list: [
        {
          id: 'login', icon: 'icon-diannao', value: '登录'
        }
      ]
    }, {
      id: 'index4',
      value: '报告中心',
      isShow: '',
      list: [
        {
          id: 'reportReport', icon: 'icon-baogao', value: '测试日志'
        }
      ]
    }
  ]
}
export var getSidebarData = () => { // 获取菜单数据
  return server.sidebarData
}
